import { defineStore } from 'pinia';

interface EventBus {
    HomeMenuRefresh: boolean;
}

export const useEventBus = defineStore('EventBus', {
    state: (): EventBus => ({
        HomeMenuRefresh: false, // 是否刷新常用功能菜单
    }),
    actions: {
        toggleHomeMenu(e: boolean = false) {
            this.HomeMenuRefresh = e;
        }
    },
});
